package com.bifang.core.dao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bifang.core.dao.mapper.SysFunctionMapper;
import com.bifang.core.dao.model.SysFunction;
import com.bifang.core.dao.service.SysFunctionService;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;

/**
 * 系统方法表 服务实现类
 *
 * @author chenzh
 * @since 2020-06-17
 */
@Service
public class SysFunctionServiceImpl extends ServiceImpl<SysFunctionMapper, SysFunction>
        implements SysFunctionService {

    @Override
    public List<String> selectApiByUserId(String userId) {
        return baseMapper.selectApiByUserId(userId);
    }

    @Override
    public Integer selectMaxOrdernoByParentId(String parentId) {
        return baseMapper.selectMaxOrdernoByParentId(parentId);
    }

    @Override
    public int updateOradernoDwon(Map map) {
        return baseMapper.updateOradernoDwon(map);
    }

    @Override
    public int updateOradernoUp(Map map) {
        return baseMapper.updateOradernoUp(map);
    }

    @Override
    public int updateRateByMove(Map map) {
        return baseMapper.updateRateByMove(map);
    }

    @Override
    public List<SysFunction> selectFunctionTreeList(SysFunction record) {
        return baseMapper.selectFunctionTreeList(record);
    }

    @Override
    public List<SysFunction> selectChildByTree(Map map) {
        return baseMapper.selectChildByTree(map);
    }
}
